﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class techdetail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.menu.Logo = "1";
            CItem item = new CItem();
            DataTable dt = item.ReadItems(2);
            if (null != dt)
            {
                int i = 0;
                if (null != Request.QueryString["i"])
                {
                    i = Convert.ToInt32(Request.QueryString["i"].ToString());
                }
                this.ltlContent.Text = dt.Rows[i]["content"].ToString();
                this.ltlTopNav.Text = dt.Rows[i]["title"].ToString();
            }
        }
    }
}